
<extend name="Public:index" />
<block name="left">
	<ul >
		<li><a href="{:U('admin/Info/official')}">官方授权</a></li>
		<li><a href="{:U('admin/Info/zoon')}">大区授权</a></li>
		<li><a href="{:U('admin/Info/agent')}">总代理授权</a></li>
		<li><a href="{:U('admin/Info/normal')}">普通代理授权</a></li>
	</ul>
</block>
<block name="right">
	<form method="post" action="{:U('Admin/Info/agent')}" id="form">
		<div class="form-group">
			<label for="exampleInputEmail1">官&nbsp;方</label>
			<select name="shouquan" onchange="change_zoom(this)">
				<foreach name="data" item="data">
					<option value="{$data['offical']}" >{$data.offical}</option>
				</foreach>
			</select>
		</div>
			<div class="form-group">
			<label for="exampleInputEmail1">大&nbsp;区</label>
            <div id="zoon" style=" display:inline;">
			{$info}
            </div>
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">微信号</label>
			<input type="text" name="wechat" placeholder="请输入微信号" class="wechat form-control" />
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">手机号</label>
			<input type="text" name="phone" placeholder="请输入手机号" class="phone form-control" />
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">姓&nbsp;名</label>
			<input type="text" name="name" placeholder="请输入姓名" class="name form-control" />
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">性&nbsp;别</label>
			<input type="radio" name="sex" value="男" checked="checked" />男<input type="radio" name="sex" value="女" />女
		</div>
		<div class="form-group">
			<label for="exampleInputPassword1">收货地址</label>
			<input type="text" name="address" placeholder="请输入送货地址" class="address form-control" />
		</div>
		<input type="submit" value="授权" onclick="return agent1()" class="btn btn-default">
	</form>
    
<script>
	function change_zoom(obj)
	{
		var val=$(obj).val();
		$.post('{:U("info/get_zoon_byofficial")}',
		{offical:val},
		function(data) {
			if(data) { 
				$("#zoon").html(data);
			}
			else
			{
				alert("读取区失败");
			}
		},
		'json'
	);
		
	}
	
	function change_agent(obj)
	{
	}
</script>

</block>

